<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加评论页面</title>
</head>
<body>
<div style="background-color:#d3d7df;width: 80%;height: 80%;text-align: center;border: black solid 2px;margin-left: 10%;margin-top: 50px">
    <div style="margin-top: 100px">
        <button>
            <a th:href="@{/admin/index}">返回首页</a>
        </button>
       <form th:action="@{/comment/addComment}" class="form form-horizontal" id="form-article-add"  method="post" enctype="multipart/form-data">
           <div class="row cl">
               <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品Id：</label>
               <div class="formControls col-xs-8 col-sm-9">
                   <input type="text" name="goodsId" placeholder="" value="1" class="input-text">
               </div>
           </div>
           <div class="row cl">
               <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>评论内容：</label>
               <div class="formControls col-xs-8 col-sm-9">
                   <input type="text" name="commentContent" placeholder="" class="input-text">
               </div>
           </div>
           <div class="row cl">
               <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品图片：</label>
               <div class="formControls col-xs-8 col-sm-9">
                   <input type="file" name="picture" accept="image/*" id="" placeholder="" value="" class="input-text">
               </div>
           </div>
<!--           商品Id：<input type="text" name="goodsId" value="1"><br>-->
<!--           评论内容：<input type="text" name="commentContent"><br>-->
<!--           评论图片：<input type="file" name="picture" accept="image/*"><br>-->
           <input type="submit" th:value="确认添加">
        </form>
    </div>
</div>
</body>
</html>